package czh.cocoa.foundation;

public class NSData extends NSObject {

	private byte[] mData;
	
	private int mLength;
	
	public NSData(byte[] data) {
		this(data, data.length);
	}
	
	public NSData(byte[] data, int length) {
		mData = data;
		mLength = length;
	}
	
	public byte[] bytes() {
		return mData;
	}
	
	public int length() {
		return mLength;
	}
	
}
